package com.faner.fast.email.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.faner.fast.email.pojo.model.EmailConfigDO;
import com.faner.fast.email.pojo.vo.EmailDTO;

/**
 * description: EmailConfigService
 * date: 2020/11/26 11:21
 * author: faner
 */
public interface EmailConfigService extends IService<EmailConfigDO> {

    /**
     * 查询配置
     * @return EmailConfig 邮件配置
     */
    EmailConfigDO find();

    /**
     * 发送邮件
     * @param emailVO 邮件发送的内容
     * @param emailConfig 邮件配置
     * @throws Exception /
     */
    void send(EmailDTO emailVO, EmailConfigDO emailConfig);
}
